/* Functions for drawing the circles and info on screen */
#ifndef DRAWNODES_H
#define DRAWNODES_H

#include <QGraphicsScene>
#include <QGraphicsItem>
#include <QPainter>
#include <QObject>
#include <SpideyWindow.h>

class node : public QGraphicsItem
{
	//Q_OBJECT
public:
    int r, x, y;
	node(int _r, int _x = 0, int _y = 0, SpideyWindow * parent = 0);
    void paint(QPainter *painter, const QStyleOptionGraphicsItem *option,
                QWidget *widget);
    QRectF boundingRect() const;
    void move(int, int);
    void moveBy(int _x, int _y);
    void addToWindow(SpideyWindow *newWindow);
    void addToScene(QGraphicsScene *newScene);
};

#endif // DRAWNODES_H
